import {createStore} from 'redux';
import render from "./render";
import reducers from "./reducers";

const store = createStore(reducers);

// 订阅 ===> 一定注意拼写！拼写！拼写！
store.subscribe(() => {
  render({ state: store.getState(), dispatch: store.dispatch });
});

render({ state: store.getState(), dispatch: store.dispatch });

// 然后使用命令： npx webpack 进行打包
